﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SHDQGSWEB.Models.PlayerInfo>" %>
<%if(Model.Type == "flash"){%>


<%}else if(Model.Type=="avi"){%>
    <object align="MIDDLE" class="OBJECT" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="<%=Model.Height %>" id="MediaPlayer" width="<%=Model.Width %>"> 
    <param name="ShowStatusBar" value="-1" /> 
    <param name="<%=Model.FileName%>" value="<%=Model.Addr%>" /> 
    <embed type="application/x-oleobject" 
           codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" 
           flename="<%=Model.FileName%>" 
           src="<%=Model.Addr%>" 
           width="356" 
           height="320"> 
    </embed>  
    </object> 

<%}else{%>
    NOT SUPPORTED
<%}%>


